$(function(){
	loadList();
});

function loadList(){
	var load = document.getElementById("loadDiv");
	load.style.display = 'block';
	var articleDate = conditionDate.format("yyyy-MM-dd");
	getList(articleDate);

}

function getList(articleDate) {
	var dataList = "";

	var data = {createTime : articleDate}
	$.ajax({
		url : "planCurrLimi/getPlanCurrLimiList",
		dataType : "json",
		data : data,
		success : function(data) {
			var load = document.getElementById("loadDiv");
			load.style.display = 'none';
			if (data != null && data != undefined && data.length>0)
			{
				for(var i in data){
					dataList+="<tr><td>"+data[i].stationName+"</td>";
					dataList+="<td>"+data[i].planCurrentLimitingStartTime+"-"+data[i].planCurrentLimitingEndTime+"</td>";
					dataList+="<td>"+data[i].actualCurrentLimitingStartTime+"-"+data[i].actualCurrentLimitingEndTime+"</td>";
					if (data[i].remark != null && typeof(data[i].remark)!="undefined" )
					{
						dataList+="<td>"+data[i].remark+"</td></tr>";
					}else
					{
						dataList+="<td></td></tr>";
					}

				}
				$("#dataList").html(dataList);
			}else
			{
				dataList+="<tr><td colspan='4' style='text-align: center'>"+"暂无数据"+"</td></tr>";
				$("#dataList").html(dataList);
			}

		}
	});
}



